package com.example.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.gulimall.product.entity.AttrGroupEntity;
import com.example.gulimall.product.vo.AttrGroupWithAttersVo;
import com.example.gulimall.product.vo.item.SkuItemVo;
import com.example.gulimall.product.vo.item.SpuItemGroupAttrVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author zyred
 * @email zyred@163.com
 * @date 2021-08-23 10:31:18
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params, Long catId);

    void updateDetails(AttrGroupEntity attrGroup);

    List<AttrGroupWithAttersVo> getAttrGroupWithAtters(Long catelogId);

    @Deprecated
    List<SpuItemGroupAttrVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);

    List<SpuItemGroupAttrVo> getAttrGroupWithAttrsBySpuIdJoin(Long spuId, Long catalogId);
}

